<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
本地微应用

<input id="message" type="text">
<button id="send">发送</button>

<script>
    document.getElementById('send').addEventListener('click', (e) => {
        const message = document.getElementById('message').value
        app.sendNotify({
            title:"通知",
            body:message,
        })
    })
</script>
</body>
</html>